import request from "@/utils/request";

const path = '/orders'

// 订单条件分页查询
export const getOrders = (params) => {
  return request({
    url: path,
    params
  })
}

// 拒单
export const rejectionOrder = (data) => {  
  return request({
    url: path + '/rejection',
    method: 'put',
    data
  })
}

// 用户付款了，管理员确认已完成
export const confirmOrder = (id) => {
  return request({
    url: path + `/${id}`,
    method: 'put',
  })
}